package cn.cangfei.massage.mapper;

import cn.cangfei.massage.entity.PowerAccount;
import cn.cangfei.massage.entity.PowerAccountExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface PowerAccountMapper {
    long countByExample(PowerAccountExample example);

    int deleteByExample(PowerAccountExample example);

    int deleteByPrimaryKey(Long id);

    int insert(PowerAccount record);

    int insertSelective(PowerAccount record);

    List<PowerAccount> selectByExample(PowerAccountExample example);

    PowerAccount selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") PowerAccount record, @Param("example") PowerAccountExample example);

    int updateByExample(@Param("record") PowerAccount record, @Param("example") PowerAccountExample example);

    int updateByPrimaryKeySelective(PowerAccount record);

    int updateByPrimaryKey(PowerAccount record);

    /**
     * 根据accountId查询出所有的name(也就是电话号码)
     *
     * @param accountsLong
     * @return
     */
    List<PowerAccount> getNameByAccountIds(@Param("accountsLong") List<Long> accountsLong);

    /**
     * 根据师傅id删除账号
     *
     * @param id
     */
    void deleteByDoctorId(@Param("id") String id);
}
